#include<iostream>
using namespace std;
int main()
{
	long long a, b;
	while (cin >> a >> b) {
		if ((a % 86 + b % 86) % 86 == 0) {
			cout << "yes" << endl;
		}
		else {
			cout << "no" << endl;
		}
	}
	return 0;
}